@extends('admin.author.layout.layout')
@section('content')

<div class="panel panel-default">
    <div class="panel-heading">
       作者公告
    </div>
    <!-- /.panel-heading -->
    <div class="panel-body">
    
    <div class="row">   
		<div class="col-lg-8 col-lg-offset-2">
			@if(session('success'))

			<div class="alert alert-success">
               {{session('success')}}	
            </div>	

			@endif
	        <form action="{{url('/admin/extra/insert')}}" method="post">
				<div class="form-group">
				    <label>发布公告</label>

				    <textarea class="form-control" rows="3" name="gg">
				    @if(!empty($gg))
						{{$gg->gg}}
				    @endif
				    </textarea>
				    <input type="hidden" name="aid" value="{{session('id')}}}">
				    {{csrf_field()}}
				</div>
				<button type="submit" class="btn btn-primary btn-lg btn-block">发布公告</button>
			</form>
		</div>
   	</div>

    </div>
    <!-- .panel-body -->
</div>


@endsection